package com.tuanzi.loan.workflow.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.tuanzi.loan.workflow.entity.FormAttribute;

/**
 * @author Ray
 * @date 2018/01/12
 */
public interface FormAttributeRepository extends JpaRepository<FormAttribute, Long> {

	List<FormAttribute> findAllByFormBindId(Long formBindingId);

	List<FormAttribute> findAllByProcDefId(String procDefId);

	List<FormAttribute> findAllByProcDefIdAndFormBindId(String procDefId, Long formBindId);

	FormAttribute findByProcDefIdAndActivityIdAndFormBindId(String procDefId, String activityId, Long formBindingId);
}
